python transform two columns to a list combine

38

df["pair_var"] = df[["var_1", "var_2"]].values.tolist()

Comments

Submit
0 Comments